package main

import (
	"github.com/go-telegram-bot-api/telegram-bot-api"
	"log"
)

var (
	TOKEN         = "1121196478:AAGN4KjekmAuIP7r4PvvpiKs30ihdqLwWFk"
	CHAT_ID int64 = -449210795
)

func main() {
	content := "*******************************\n" +
		"*  大家好！我是机器人robbot_kate   *\n" +
		"*  周末已到，您提交日报了吗？          *\n" +
		"*  否则将您将受到响应的处罚              *\n" +
		"*  已提交请忽略                                        *\n" +
		"********************************\n"
	RobbotSendMsg(TOKEN, content, CHAT_ID)
}

func RobbotSendMsg(token, sendContent string, chatId int64) {
	bot, err := tgbotapi.NewBotAPI(token)
	if err != nil {
		log.Panic(err)
	}
	msg := tgbotapi.NewMessage(chatId, sendContent)
	_, err = bot.Send(msg)
	if err != nil {
		log.Println("发送失败")
	}

}
